package com.service.impl;

import com.dao.ISysLogDao;
import com.domain.SysLog;
import com.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 项目名称：ssm21
 * 类 名 称：SysLogImpl
 * 类 描 述：TODO
 * 创建时间：2020-01-21 20:48
 * 创 建 人：jacksonmike
 */
@Service
@Transactional
public class SysLogImpl implements ISysLogService {
    @Autowired
    private ISysLogDao iSysLogDao;

    @Override
    public void save(SysLog sysLog) throws Exception {
        iSysLogDao.save(sysLog);
    }

    @Override
    public List<SysLog> findAll() throws Exception {
        return iSysLogDao.findAll();
    }
}
